/*
 * @Author: zsc
 * @Date: 2022-06-14 21:38:31
 * @LastEditors: zsc
 * @LastEditTime: 2022-06-30 00:01:08
 * @Description: 楼宇人员管理
 */

import request from '@/utils/request'
/**
 * 楼宇人员管理列表接口
 * @param data
 * @returns {*}
 */
export function buildingpersonGetList(data) {
  return request({
    url: '/api/user/list',
    method: 'post',
    data
  })
}
/**
 * 楼宇人员管理详情
 * @param {*} id
 * @returns
 */
export function buildingpersonGet(id) {
  const data = { id: id }
  return request({
    url: '/api/adminbuildingperson/view',
    method: 'post',
    data
  })
}
/**
 * 楼宇人员新增
 * @param {*} data
 * @returns
 */
export function buildingpersonCreate(data) {
  return request({
    url: '/api/adminbuildingperson/create',
    method: 'post',
    data
  })
}
/**
 * 楼宇人员修改
 * @param {*} data
 * @returns
 */
export function buildingpersonUpdate(data) {
  return request({
    url: '/api/adminbuildingperson/update',
    method: 'post',
    data
  })
}
/**
 * 楼宇人员删除
 * @param {*} id
 * @returns
 */
export function buildingpersonDel(id) {
  const data = { id: id }
  return request({
    url: '/api/adminbuildingperson/delete',
    method: 'post',
    data
  })
}
/**
 * 楼宇人员选择
 * @param {*} data
 * @returns
 */
export function buildingpersonColumn(data) {
  return request({
    url: '/api/adminbuildingperson/column',
    method: 'post',
    data
  })
}
